//配置结构
const { Schema, model } = require('mongoose');
//创建结构对象
const questionsSchema = new Schema({
    KnowledgePointId:{
        type: Schema.Types.ObjectId,
        ref: 'otherModel'
    },
    RightKey:String,
    analysis:String,
    answer:String,
    question:String,
    score:String
}, { versionKey: false });
    
//设置数据模型
const questionsModel = model('questionsModel', questionsSchema, 'questions')
module.exports={
    questionsModel
}